from celery import Celery

app = Celery("MyCelery")

# 加载配置
app.config_from_object('celery_task.celeryconfig')
# 任务
app.autodiscover_tasks(['celery_task.tasks.sms'])











